﻿<form method="GET" id="form-search">
    <div class="row">
        <div class="col-lg-12">
            <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;">
            <div id="slider"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row divsearch">
        <div class="search-ten">
            <input type="text" id="q" name="q" class="search-text" value="@ViewBag.q" />
            <input type="button" value="Tìm kiếm" class="search-button" id="button-search"  />
            @Html.DropDownList("LSP", (List<SelectListItem>)ViewBag.lstThanhPho, new { onchange = "this.form.submit()", @class = "search-drop" })
        </div>
    </div>
</form>
<script>
    @ViewBag.price;
    $("#form-search").attr("action", formaturl(document.URL));
    $("#button-search").click(function () {
        window.location.href = formaturl(document.URL) + "?q=" + $(".search-text").val() + "&price=" + formatNumber2($("#amount").val());
    });
</script>